<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
    <liyiruo></liyiruo>
</div>
</body>
<script>

    var Child={
        template: '<h1>自定义组件!</h1>'
    }
    new Vue({
        el:'#app',
        components:{
            'liyiruo':Child
        }
    })
</script>
</html>